package cj.com.chabaike.ui.frag;


import cj.com.chabaike.R;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class ExplainFragment extends Fragment {
	int resId;



	
	public ExplainFragment(){};

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		Bundle b = getArguments();
		resId = b.getInt("resId");
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		
		View view = inflater.inflate(R.layout.explainfragment, null, false);
		view.setBackgroundResource(resId);
		
		
		return view;
	}

}
